package com.wn.ioc;

import org.springframework.beans.factory.FactoryBean;

/**
 * @FileName: MyBean
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/7/17 - 14:01
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
public class MyBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        User user = new User();
        user.setName("诸葛亮");
        user.setTitle("亮有一计");
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
